var pos = require("GameOn");
cc.Class({
    extends: cc.Component,

    properties: {

    },

    onPause() {

        cc.find('Canvas').getComponent('GameOn').onPause();

    },

    onRefresh() {
        cc.director.loadScene('gameon');

    },

    backHome() {
        pos.splice(0, pos.length);
        cc.director.loadScene('home');

    },

    onResume() {
        cc.find('Canvas').getComponent('GameOn').onResume();
    },

});
